package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 战时卫生统计指标表
 * @TableName disposition_wq_zswstjzb
 */
@TableName(value ="disposition_wq_zswstjzb")
@Data
public class DispositionWqZswstjzb implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 手术率
     */
    @TableField(value = "surgical_rate")
    private String surgicalRate;

    /**
     * 抗休克成功率
     */
    @TableField(value = "kxkcg_rate")
    private String kxkcgRate;

    /**
     * 伤死率
     */
    @TableField(value = "ss_rate")
    private String ssRate;

    /**
     * 输液率
     */
    @TableField(value = "sy_rate")
    private String syRate;

    /**
     * 输血率
     */
    @TableField(value = "sx_rate")
    private String sxRate;

    /**
     * 平均输血量
     */
    @TableField(value = "pjsx_rate")
    private String pjsxRate;

    /**
     * 后送率
     */
    @TableField(value = "hs_rate")
    private String hsRate;

    /**
     * 留治率
     */
    @TableField(value = "ritsu_rate")
    private String ritsuRate;

    /**
     * 平均手术时间
     */
    @TableField(value = "avg_operation_time")
    private String avgOperationTime;

    /**
     * 平均留治时间
     */
    @TableField(value = "avg_ritsu_time")
    private String avgRitsuTime;

    /**
     * 通过救治伤员平均救治时间
     */
    @TableField(value = "tgjzsypjjz_time")
    private String tgjzsypjjzTime;

    /**
     * 战时药材消耗率
     */
    @TableField(value = "zsycxh_rate")
    private String zsycxhRate;

    /**
     * 血液消耗率
     */
    @TableField(value = "xyxh_rate")
    private String xyxhRate;

    /**
     * 救治机构
     */
    @TableField(value = "rehabilitation_institution")
    private String rehabilitationInstitution;

    /**
     * 关联推演
     */
    @TableField(value = "derivation")
    private String derivation;

    /**
     * 统计时间
     */
    @TableField(value = "statistical_time")
    private Date statisticalTime;

    /**
     * 统计人员
     */
    @TableField(value = "statistical_personnel")
    private String statisticalPersonnel;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqZswstjzb other = (DispositionWqZswstjzb) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSurgicalRate() == null ? other.getSurgicalRate() == null : this.getSurgicalRate().equals(other.getSurgicalRate()))
            && (this.getKxkcgRate() == null ? other.getKxkcgRate() == null : this.getKxkcgRate().equals(other.getKxkcgRate()))
            && (this.getSsRate() == null ? other.getSsRate() == null : this.getSsRate().equals(other.getSsRate()))
            && (this.getSyRate() == null ? other.getSyRate() == null : this.getSyRate().equals(other.getSyRate()))
            && (this.getSxRate() == null ? other.getSxRate() == null : this.getSxRate().equals(other.getSxRate()))
            && (this.getPjsxRate() == null ? other.getPjsxRate() == null : this.getPjsxRate().equals(other.getPjsxRate()))
            && (this.getHsRate() == null ? other.getHsRate() == null : this.getHsRate().equals(other.getHsRate()))
            && (this.getRitsuRate() == null ? other.getRitsuRate() == null : this.getRitsuRate().equals(other.getRitsuRate()))
            && (this.getAvgOperationTime() == null ? other.getAvgOperationTime() == null : this.getAvgOperationTime().equals(other.getAvgOperationTime()))
            && (this.getAvgRitsuTime() == null ? other.getAvgRitsuTime() == null : this.getAvgRitsuTime().equals(other.getAvgRitsuTime()))
            && (this.getTgjzsypjjzTime() == null ? other.getTgjzsypjjzTime() == null : this.getTgjzsypjjzTime().equals(other.getTgjzsypjjzTime()))
            && (this.getZsycxhRate() == null ? other.getZsycxhRate() == null : this.getZsycxhRate().equals(other.getZsycxhRate()))
            && (this.getXyxhRate() == null ? other.getXyxhRate() == null : this.getXyxhRate().equals(other.getXyxhRate()))
            && (this.getRehabilitationInstitution() == null ? other.getRehabilitationInstitution() == null : this.getRehabilitationInstitution().equals(other.getRehabilitationInstitution()))
            && (this.getDerivation() == null ? other.getDerivation() == null : this.getDerivation().equals(other.getDerivation()))
            && (this.getStatisticalTime() == null ? other.getStatisticalTime() == null : this.getStatisticalTime().equals(other.getStatisticalTime()))
            && (this.getStatisticalPersonnel() == null ? other.getStatisticalPersonnel() == null : this.getStatisticalPersonnel().equals(other.getStatisticalPersonnel()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSurgicalRate() == null) ? 0 : getSurgicalRate().hashCode());
        result = prime * result + ((getKxkcgRate() == null) ? 0 : getKxkcgRate().hashCode());
        result = prime * result + ((getSsRate() == null) ? 0 : getSsRate().hashCode());
        result = prime * result + ((getSyRate() == null) ? 0 : getSyRate().hashCode());
        result = prime * result + ((getSxRate() == null) ? 0 : getSxRate().hashCode());
        result = prime * result + ((getPjsxRate() == null) ? 0 : getPjsxRate().hashCode());
        result = prime * result + ((getHsRate() == null) ? 0 : getHsRate().hashCode());
        result = prime * result + ((getRitsuRate() == null) ? 0 : getRitsuRate().hashCode());
        result = prime * result + ((getAvgOperationTime() == null) ? 0 : getAvgOperationTime().hashCode());
        result = prime * result + ((getAvgRitsuTime() == null) ? 0 : getAvgRitsuTime().hashCode());
        result = prime * result + ((getTgjzsypjjzTime() == null) ? 0 : getTgjzsypjjzTime().hashCode());
        result = prime * result + ((getZsycxhRate() == null) ? 0 : getZsycxhRate().hashCode());
        result = prime * result + ((getXyxhRate() == null) ? 0 : getXyxhRate().hashCode());
        result = prime * result + ((getRehabilitationInstitution() == null) ? 0 : getRehabilitationInstitution().hashCode());
        result = prime * result + ((getDerivation() == null) ? 0 : getDerivation().hashCode());
        result = prime * result + ((getStatisticalTime() == null) ? 0 : getStatisticalTime().hashCode());
        result = prime * result + ((getStatisticalPersonnel() == null) ? 0 : getStatisticalPersonnel().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", surgicalRate=").append(surgicalRate);
        sb.append(", kxkcgRate=").append(kxkcgRate);
        sb.append(", ssRate=").append(ssRate);
        sb.append(", syRate=").append(syRate);
        sb.append(", sxRate=").append(sxRate);
        sb.append(", pjsxRate=").append(pjsxRate);
        sb.append(", hsRate=").append(hsRate);
        sb.append(", ritsuRate=").append(ritsuRate);
        sb.append(", avgOperationTime=").append(avgOperationTime);
        sb.append(", avgRitsuTime=").append(avgRitsuTime);
        sb.append(", tgjzsypjjzTime=").append(tgjzsypjjzTime);
        sb.append(", zsycxhRate=").append(zsycxhRate);
        sb.append(", xyxhRate=").append(xyxhRate);
        sb.append(", rehabilitationInstitution=").append(rehabilitationInstitution);
        sb.append(", derivation=").append(derivation);
        sb.append(", statisticalTime=").append(statisticalTime);
        sb.append(", statisticalPersonnel=").append(statisticalPersonnel);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}